# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>

pkgname=dbxtool
pkgver=8
pkgrel=1
pkgdesc='Tool for UEFI Secure Boot DBX updates'
arch=('loong64' 'x86_64')
url='https://github.com/rhboot/dbxtool'
license=('GPL2')
options=('!emptydirs')
depends=('efivar' 'popt')
makedepends=('git')
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
source=("git+$url.git#tag=$pkgname-$pkgver?signed")
sha512sums=('SKIP')

build() {
  cd $pkgname

  make PREFIX='/usr' CFLAGS="$CFLAGS" CCLDFLAGS="$LDFLAGS"
}

package() {
  cd $pkgname

  make DESTDIR="$pkgdir" PREFIX='/usr' install
}

